package com.ruoyi.ma.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 材料计划详情业务对象 ma_material_plan_details
 *
 * @author llb
 * @date 2024-11-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MaMaterialPlanDetailsBo extends BaseEntity {

    /**
     * 计划详情id
     */
//    @NotNull(message = "计划详情id不能为空", groups = { EditGroup.class })
    private Long planDetailsId;

    /**
     * 计划id
     */
    @NotNull(message = "计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long planId;

    /**
     * 标段id
     */
//    @NotNull(message = "标段id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bdId;

    private Long zdId;

    /**
     * 供应商id
     */
    @NotNull(message = "供应商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gysId;

    /**
     * 类型id
     */
//    @NotNull(message = "类型id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 清单id
     */
    @NotNull(message = "清单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long manifestId;

    /**
     * 材料编号
     */
//    @NotBlank(message = "材料编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manifestCode;

    /**
     * 材料名称
     */
//    @NotBlank(message = "材料名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manifestName;

    /**
     * 型号
     */
//    @NotBlank(message = "型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * 规格
     */
//    @NotBlank(message = "规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String specification;

    /**
     * 单位
     */
//    @NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     * 本月采购数量
     */
//    @NotNull(message = "本月采购数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal monthPurchaseNumber;

    /**
     * 累计采购数量
     */
//    @NotNull(message = "累计采购数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal totalPurchaseNumber;

    /**
     * 联系人
     */
//    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String personnel;

    /**
     * 电话
     */
//    @NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 本月申请供应数量卸货点
     */
//    @NotBlank(message = "本月申请供应数量卸货点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bysqgyslxhd;
    /**
     * 所属时间
     */
//    @NotNull(message = "所属时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String belongDate;

}
